package com.service.imp;

import com.mapper.PingJiaMapper_db;
import com.pojo.PingJia_db;
import com.service.PingJiaService_db;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PingJiaServiceImp_db implements PingJiaService_db {
    @Autowired
    private PingJiaMapper_db pingJiaMapperDb;

    @Override
    public List<PingJia_db> list(String stime, String etime, Integer id) {
        return pingJiaMapperDb.list(stime, etime, id);
    }

    @Override
    public List<PingJia_db> listAll() {
        return pingJiaMapperDb.listAll();
    }

    @Override
    public List<PingJia_db> listById(Integer id) {
        return pingJiaMapperDb.listById(id);
    }

    @Override
    public Integer add(PingJia_db pingJiaDb) {
        return pingJiaMapperDb.add(pingJiaDb);
    }

    @Override
    public Integer update(PingJia_db pingJiaDb) {
        return pingJiaMapperDb.update(pingJiaDb);
    }

    @Override
    public Integer del(Integer pId) {
        return pingJiaMapperDb.del(pId);
    }
}
